﻿using DAL;
using IService;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service
{
    public class BiCustomerService : IBiCustomerService
    {
        private readonly BiCustomerDal biCustomer;
        public BiCustomerService(BiCustomerDal biCustomer)
        {
            this.biCustomer = biCustomer;
        }

        public Task<int> CreateAsync(BiCustomer data)
        {
            return biCustomer.CreateAsync(data);
        }

        public Task<int> DeleteAsync(long Id)
        {
            return biCustomer.DeleteAsync(Id);
        }

        public Task<List<BiCustomer>> GetAllAsync()
        {
            return biCustomer.GetAllAsync();
        }

        public Task<BiCustomer> GetByIdAsync(long Id)
        {
            return biCustomer.GetByIdAsync(Id);
        }

        public Task<int> UpdateAsync(BiCustomer date)
        {
            return biCustomer.UpdateAsync(date);
        }
    }
}
